<?php
/**
 * CK 开发框架
 * User: Clake
 * Date: 15/6/22
 * Time: 02:53
 */

namespace CK\Mode\Rpc;

use CK\Core\Router;
use CK\Util\Error;

class App extends \CK\Core\App{
    protected function init() {
        $this->setRouter(Router::inst());
        $this->_module = $this->_router->getModule();
        $this->_module->setController($this->_router->getController());
    }

    public function register() {
        Error::inst()->enable();
        Error::inst()->setWebPlainText();
    }
}